/*
 */
package it.pride.primefacesShowcase.filters;

import org.hibernate.criterion.Criterion;

/**
 *
 * @author eluibon
 */
public class EmptyFilter implements Filter {

    protected String property ;

    public EmptyFilter(String property) {
        this.property = property;
    }
    
    @Override
    public Criterion getCriterion() {
        return null ;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 53 * hash + (this.property != null ? this.property.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EmptyFilter other = (EmptyFilter) obj;
        if ((this.property == null) ? (other.property != null) : !this.property.equals(other.property)) {
            return false;
        }
        return true;
    }
}
